package com.financing.platform.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.financing.platform.dao.IProjectAccountDao;
import com.financing.platform.dto.ProjectAccountDTO;
import com.financing.platform.service.IProjectAccountService;

/**
 * 
* @ClassName: ProjectAccountServiceImpl 
* @Description: 产品募集账号信息 
* @author chenming 
* @date 2014年10月8日 上午11:28:44 
*
 */
@Service("projectAccountServiceImpl")
@Transactional(rollbackFor=Exception.class)
public class ProjectAccountServiceImpl extends BaseServiceImpl implements IProjectAccountService {

	@Autowired
	private IProjectAccountDao projectAccountDaoImpl;
	
	public int addProjectAccount(ProjectAccountDTO projectAccountDto)
			throws SQLException {
		return projectAccountDaoImpl.addProjectAccount(projectAccountDto);
	}

	public List<ProjectAccountDTO> queryProjectAccountList(int projectId) {
		return projectAccountDaoImpl.queryProjectAccount(projectId);
	}

	public int deleteProjectAccount(int projectId) throws SQLException {
		return projectAccountDaoImpl.deleteProjectAccount(projectId);
	}

}
